export const CONSTANTS = {
  SIZE: 3,
  TRY_NUMBER: 3000,
  X: 1,
  O: -1,
  // # GAME result
  DRAW: 0, //#平局
  CONTINUE: 255, //# 继续游戏

  //# 3 x 3的三连数组
  wincombinations: [
    [0, 1, 2], //# row
    [3, 4, 5],
    [6, 7, 8],
    [0, 3, 6], //# col
    [1, 4, 7],
    [2, 5, 8],
    [0, 4, 8], //# dig
    [2, 4, 6],
  ],
  // 5 *5 的4连
  wincombinations_5x5: [
    [0, 1, 2, 3], //#row
    [1, 2, 3, 4],
    [5, 6, 7, 8],
    [6, 7, 8, 9],
    [10, 11, 12, 13],
    [11, 12, 13, 14],
    [15, 16, 17, 18],
    [16, 17, 18, 19],
    [20, 21, 22, 23],
    [21, 22, 23, 24],
    [0, 5, 10, 15], //#col
    [5, 10, 15, 20],
    [1, 6, 11, 16],
    [6, 11, 16, 21],
    [2, 7, 12, 17],
    [7, 12, 17, 22],
    [3, 8, 13, 18],
    [8, 13, 18, 23],
    [4, 9, 14, 19],
    [9, 14, 19, 24],
    [1, 7, 13, 19], //#dig
    [5, 11, 17, 23],
    [0, 6, 12, 18],
    [6, 12, 18, 24],
    [3, 7, 11, 15],
    [9, 13, 17, 21],
    [4, 8, 12, 16],
    [8, 12, 16, 20],
  ],
  // 5*5的三联
  wincombinations_4x4_3: [
    [0, 1, 2],
    [1, 2, 3],
    [4, 5, 6],
    [5, 6, 7],
    [8, 9, 10],
    [9, 10, 11],
    [12, 13, 14],
    [13, 14, 15],
    [0, 4, 8],
    [4, 8, 12],
    [1, 5, 9],
    [5, 9, 13],
    [2, 6, 10],
    [6, 10, 14],
    [3, 7, 11],
    [7, 11, 15],
    [2, 5, 8],
    [3, 6, 9],
    [6, 9, 12],
    [7, 10, 13],
    [1, 6, 11],
    [0, 5, 10],
    [5, 10, 15],
    [4, 9, 14],
  ],
};
